package com.device.operating.dao;

import java.util.List;

import org.springframework.data.repository.PagingAndSortingRepository;

import com.device.operating.entity.User;

public interface UserRepository extends PagingAndSortingRepository<User, String>{

	public User findByEmailAndPassword(String email,String password);
	
	public User findByTelAndPassword(String tel,String password);
	
	public List<User> findByUsername(String username);
	
	public List<User> findByRootdpId(String rootdpId);
	
	public List<User> findByDepartmentId(String departmentId);
	
	public List<User> findByUsercode(String usercode);
	
}
